package com.workflow.workflowproject.config;

import lombok.extern.slf4j.Slf4j;

/**
 *
 *
 * @author
 */
@Slf4j
public class ServiceException extends RuntimeException {

    private static final long serialVersionUID = 3583566093089790852L;



    public ServiceException() {
        super();
    }

    public ServiceException(String message) {
        super(message);
        if (log.isDebugEnabled()) {
            log.debug(message);
        }
    }

    public ServiceException(Exception cause) {
        super(cause);
        if (log.isDebugEnabled()) {
            log.debug(cause.getMessage());
        }
    }

    public ServiceException(String message, Throwable cause) {
        super(message, cause);
        if (log.isDebugEnabled()) {
            log.debug(message);
        }
    }
}

